package com.exam.mapper;

import com.exam.po.ExamManage;
import com.exam.po.Student;
import com.exam.po.StudentExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface StudentMapper {
    int countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int deleteByPrimaryKey(Integer studentid);

    int insert(Student record);

    int insertSelective(Student record);

    List<Student> selectByExample(StudentExample example);

    Student selectByPrimaryKey(Integer studentid);

    int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    List<Student> selectStudentsByPage(@Param("page") Integer page, @Param("size") Integer size);

    List<ExamManage> selectStudentsExam(@Param("teacherId") Integer teacherId, @Param("page") Integer page, @Param("size") Integer size);



    int findCountStudentExam(@Param("teacherId") Integer teacherId);

    Integer findCountStudens();
    /*
     * @Author mahaoqi
     * @Description 登录得方法
     * @Date 2021/1/13 10:57
     * @Param [studentid, pwd]
     * @return com.exam.po.Student
     **/
    Student findByIdAndPwd(@Param("studentid") Integer studentid,@Param("pwd") String pwd);
}